  

<?php

class UserDao {

    var $connection;

    function UserDao($connection) {
        $this->connection = $connection;
    }

    function login($login, $pwd) { 
        $sql = "SELECT * FROM c_user WHERE login=\"$login\"";  
        $r = $this->connection->querySingle($sql); 
        return $r;
    }
 
}
